<!DOCTYPE html>
<html lang="zh-CN">
  <head>
   <meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
    <title>CloudBooking User login</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="/css/style.css" rel="stylesheet">
  </head>
  <body>
    





    <div class="bs-docs-header" id="content" tabindex="-1">
        <div class="container">
            <h1>文档管理系统</h1>
            <p>新增文档、修改文档、分享文档、设置分档权限</p>
        </div>
    </div>
    <div class="container">
        <div style="margin:5px 0px;">
                <div for="exampleInputEmail1" class="itemTitle">文件权限</div>
                <div class="btn-group" role="group" aria-label="...">
                        <button type="button" class="btn btn-default"><span class="glyphicon glyphicon-lock"></span>&nbsp;私有</button>
                        <button type="button" class="btn btn-default"><span class="glyphicon glyphicon-certificate"></span>&nbsp;公开</button>
                        <button type="button" class="btn btn-info"><span class="glyphicon glyphicon-cog"></span>&nbsp;设置可见</button>
                </div>
                <div style="border:1px solid #96d0ef;min-height:60px;margin-top:-1px;">

                </div>
        </div>
        <div class="form-group">
        <label for="exampleInputEmail1" >文件主题</label>
        <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email">
        </div>
        <div class="form-group">
        <label for="exampleInputPassword1">文件概要</label>
        <textarea class="form-control" rows="3" style="resize: none"></textarea>
        </div>
       
       <button class="btn btn-info" onclick="addDocument()">Add document</button>
       <button class="btn btn-info" onclick="getDocument()">Get document</button>
       <span class="glyphicon glyphicon-cloud"></span>
    </div>























    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="js/common.js"></script>
   <script>
    var ApiHref=""   
    function addDocument() {
        var url = ApiHref + "/api/functionRouter";
        var JsonData = {};
        JsonData.Function ="adddocument";
        JsonData.MetaData =JSON.stringify({"code":"dfasdfdsdfds","name":"张欧川子","address":"山东省肥城市","telphone":"15194389479","birthday":"","identityID":"","weixin":"chuan00135","password":"zocz0109","photo":"zhangouchuangzi.jpg" });
        $.ajax({
        url: url,
        type: 'POST',
        dataType: 'json',
        contentType: 'application/json',
        data: JSON.stringify(JsonData),
        success: function(response) {
            console.log(response);            
        }
    });

     
}

function getDocument() {
        var url = ApiHref + "/api/functionRouter";
        var JsonData = {};
        JsonData.Function ="getdocument";
        JsonData.MetaData =JSON.stringify({"code":"dfasdfdsdfds","name":"张欧川子","address":"山东省肥城市","telphone":"15194389479","birthday":"","identityID":"","weixin":"chuan00135","password":"zocz0109","photo":"zhangouchuangzi.jpg" });
        $.ajax({
        url: url,
        type: 'POST',
        dataType: 'json',
        contentType: 'application/json',
        data: JSON.stringify(JsonData),
        success: function(response) {
            console.log(response);            
        }
    });
}
</script>
  </body>
</html>